package com.example.planetandzombiedemo.global;

import android.graphics.Bitmap;
import android.graphics.Point;

import java.util.HashMap;

/**
 * Config定义系统所需公共资源变量
 */
public class Config {
    //设备的大小
    public static int deviceWidth;
    public static int deviceHeight;
    //缩放的大小
    public static float scaleWidth;
    public static float scaleHeight;

    //背景资源
    public static Bitmap gameBK;
    //卡片栏
    public static Bitmap seedBank;
    public static int seedBankLocationX;
    //阳光槽
    public static int sunLight = 200;
    //卡片（阳光、豌豆射手）
    public static Bitmap seedFlower;
    public static Bitmap seedPea;
    //豌豆与太阳花图片资源（动画帧）
    public static Bitmap[] flowerFrames = new Bitmap[8];
    public static Bitmap[] peaFrames = new Bitmap[8];
    //能放置植物的区域定义
    public static HashMap<Integer, Point> plantPoints=new HashMap<Integer,Point>();
    //跑道
    public static int[] raceWayPoints=new int[5];
    //阳光
    public static Bitmap sun;
    //阳光生存时间(5秒)
    public static long lifeTime=5000;
    //豌豆子弹
    public static Bitmap bullet;
    //僵尸
    public static Bitmap[] zombieFrames=new Bitmap[8];
    //僵尸与植物的高度差
    public static int heightDistance;
}
